package cn.lcfms.app.admin.controller;


import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import cn.lcfms.bin.App;
import cn.lcfms.bin.PermitPoll;
import cn.lcfms.bin.Userinfo;

@PermitPoll(type="系统管理",name="后台框架",forward="login.html")
@Controller("admin.Index")
@RequestMapping("/admin/index")
public class IndexController extends AdminBaseController{	
	
	@RequestMapping("/ace")
	public ModelAndView ace(HttpServletRequest request){
		int firstitemid=(int) App.APPCONFIG.get("ace.firstitemid");
		Userinfo.putUserInfo("firstitemid", firstitemid, request);
		ModelAndView view=new ModelAndView("admin/ace");	
		return view;
	}
	
	@RequestMapping("/first")
	public ModelAndView first(HttpServletRequest request){
		ModelAndView view=new ModelAndView("admin/first");					
		return view;
	}	
}
